Break out code that was repeated into separate functions and call them
authorRichard Hult <richard@imendio.com>
Mon, 28 May 2007 21:11:55 +0000 (21:11 +0000)
committerRichard Hult <rhult@src.gnome.org>
Mon, 28 May 2007 21:11:55 +0000 (21:11 +0000)
commitf2f1be4e4f2ddefac97ec983ff631e0ebaf991d3
treeaaa075c8f3218bbec109ea8e52124b2befe5e759
parentd36c24a8b9576880e116b46a5c39fc80d1f7c3e6
Break out code that was repeated into separate functions and call them

2007-05-28  Richard Hult  <richard@imendio.com>

* gdk/quartz/gdkevents-quartz.c (get_child_coordinates_from_ancestor)
(get_ancestor_coordinates_from_child): Break out code that was
repeated into separate functions and call them instead.
(find_window_for_mouse_nsevent): Break out this from
find_window_for_nsevent to make the code clearer.
(find_window_for_nsevent): Use the above and fix the returned
coordinates in the process so that they are always relative the
found window, both for the normal case and during grabs. Still
needs fixing for the case where we get nsevents for a window other
than than grab window during grabs.

svn path=/trunk/; revision=17971
ChangeLog
gdk/quartz/gdkevents-quartz.c